/*
 * ObjectClassifier.h
 * VB Script Analyzer
 * @author Gregoire JACOB (gregoire.jacob@orange-ftgroup.com)
 * @date 07/04/2008
 * @version 1.0
 */

//Constantes
#define AUTO_REF	"ScriptFullname"
#define AUTO_REFS	"Scriptname"
#define RUN_REG1  	"Software\\Microsoft\\Windows\\CurrentVersion\\Run"
#define RUN_REG2	"Software\\Microsoft\\Windows\\CurrentVersion\\RunServices"
#define RUN_REG3	"Software\\Microsoft\\Internet Explorer\\Main\\Start Page"
#define RUN_FILE1	"win.ini"
#define RUN_FILE2	"system.ini"
#define RUN_FILE3	"autoexec.bat"
#define RUN_FILER	"autorun.inf" //for amovible disk
#define RUN_FILEM	"script.ini" //mirc initialisation script
#define RUN_FOLD	"Start Menu\\Programs\\Startup"
#define COM_DRIVE	"PotentiallyCom"
#define HTM_DOC		"HtmlDocument"
#define COM_FOLD1	"Kazaa"
#define COM_FOLD2	"Edonkey"
#define COM_FOLD3	"Morpheus"
#define COM_FOLD4	"WinMX"
#define COM_FOLD5	"Bearshare"
#define COM_FOLD6	"Shared"

char scriptname[NAME_MAX_LENGTH];


/**
 * ClassifyObject()
 * ClassifyFile()
 * ClassifyRegKey()
 * @param the object to classify
 * @param the object nature (OBJ_FILE,OBJ_REG,OBJ_MAIL,VAR)
 * @return the object type (TYPE_VAR,TYPE_PERM,TYPE_BOOT,TYPE_COM,TYPE_THIS)
 */
int ClassifyObject(char * name, int * nature);
int ClassifyFile(char * name, int * nature);
int ClassifyRegKey(char * name, int * nature);